package com.haolijun.eecms.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName UpdateNoticeForm
 * @Description TODO
 * @Author hljstart
 * @Date 2023/3/11 16:52
 * @Version 1.0
 */
@Data
@Schema(description = "更新公告表单")
public class UpdateNoticeForm {

    @NotNull(message = "id不能为空")
    @Min(value = 1,message = "id最小为1")
    @Schema(description = "公告id")
    private Integer id;

    @NotBlank(message = "title不能为空")
    @Schema(description = "公告标题")
    private String title;

    @NotBlank(message = "content不能为空")
    @Schema(description = "公告内容")
    private String content;

    @Schema(description = "上传图片地址")
    private String[] images;
}
